public class Solution {
    /**
     * @param number: A 3-digit number.
     * @return: Reversed number.
     */
    public int reverseInteger(int number) {
        // write your code here
        int answer = 0;
        for(int i=0; i<3; i++)
        {
            answer *= 10;
            answer += number % 10;
            number /= 10;
        }
        return answer;
    }
}